package com.nowcoder.community.dao;


import com.nowcoder.community.entity.DiscussPost;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@Mapper
public interface DiscussPostMapper {
    //查询支持分页
    List<DiscussPost> selectDiscussPosts(int userId,int offset, int limit);

    //查询个人帖子总条数
    int selectDiscussPostRows( @Param("userId") int userId);
}
